package cn.itfcz.server.http;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;

/**
 * http请求的类
 * @author fengcongzhi
 */
public class Request {

	private String url;
	private String method;
	
	public Request(InputStream inputStream) throws IOException {
		super();
		BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream , "utf-8"));
		String[] mu = reader.readLine().split(" ");
		this.method = mu[0];
		this.url = mu[1];
	}
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	
	
}
